package com.member.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.member.shop.domain.SysBizWithdrawApply;
import com.member.shop.dto.OverviewDto;

import java.math.BigDecimal;
import java.util.List;

/**
 * 提现申请Mapper接口
 *
 * @author lixinchen
 * @date 2024-01-11
 */
public interface SysBizWithdrawApplyMapper extends BaseMapper<SysBizWithdrawApply> {
    /**
     * 查询提现申请
     *
     * @param id 提现申请主键
     * @return 提现申请
     */
    public SysBizWithdrawApply selectSysBizWithdrawApplyById(Long id);

    /**
     * 查询提现申请列表
     *
     * @param sysBizWithdrawApply 提现申请
     * @return 提现申请集合
     */
    public List<SysBizWithdrawApply> selectSysBizWithdrawApplyList(SysBizWithdrawApply sysBizWithdrawApply);

    /**
     * 新增提现申请
     *
     * @param sysBizWithdrawApply 提现申请
     * @return 结果
     */
    public int insertSysBizWithdrawApply(SysBizWithdrawApply sysBizWithdrawApply);

    /**
     * 修改提现申请
     *
     * @param sysBizWithdrawApply 提现申请
     * @return 结果
     */
    public int updateSysBizWithdrawApply(SysBizWithdrawApply sysBizWithdrawApply);

    /**
     * 删除提现申请
     *
     * @param id 提现申请主键
     * @return 结果
     */
    public int deleteSysBizWithdrawApplyById(Long id);

    /**
     * 批量删除提现申请
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysBizWithdrawApplyByIds(Long[] ids);

    /**
     * 查询提现申请列表(统计)
     *
     * @param sysBizWithdrawApply 提现申请
     * @return 提现申请集合
     */
    List<SysBizWithdrawApply> withdrawalCount(SysBizWithdrawApply sysBizWithdrawApply);

    // 今日提现金额(统计)
    BigDecimal todayWithdrawal(OverviewDto overviewDto);

}